package cn.seqdata.diff;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.springframework.data.domain.Persistable;

import cn.seqdata.jpa.JpaNamed;

public class DiffValue<ID extends Serializable, L extends JpaNamed<Long>, R extends Persistable<ID>>
		extends JpaJoinValue<ID, L, R> {
	private final Map<Object, Object> diff = new HashMap<>();

	public DiffValue(ID id) {
		super(id);
	}

	public DiffValue(ID id, L left, R right) {
		super(id, left, right);
	}

	public DiffValue(JoinValue<ID, L, R> source) {
		super(source.getId(), source.getLeft(), source.getRight());
	}

	public Map<Object, Object> getDiff() {
		return diff;
	}
}
